package com.xiaoye.demo.test;

import java.util.Random;

/**
 * @Description :
 * @Author : ChenYao
 * @Version : 1.0
 * @Create : Date Time: 2018/8/26 9:39
 * @Update : Date Time: 2018/8/26 9:39
 * @see :
 */
public class TreaditionalThread extends Thread {
    @Override
    public void run() {
        try {
            for (int i = 0; i < 10; i++) {
                int nextInt = new Random().nextInt(100);
                Thread.sleep(nextInt);
                System.out.println("run=" + Thread.currentThread().getName());
            }
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
